#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'tian'
__data__ = '2022/4/7 16:36'
# software: PyCharm

from . import views

from rest_framework.routers import DefaultRouter

router = DefaultRouter()
# 商品
router.register("list", views.GoodsListViewSet, basename="list")
# 分类
router.register("category", views.CategoryViewSet, basename="category")
# 热搜词
router.register("hot", views.HotSearchViewSet, basename="hot")
# 轮播图
router.register("banner", views.BannerViewsSet, basename="banner")
# 首页商品类别广告
router.register("homegoods", views.IndexCategoryViewSet, basename="homegoods")

urlpatterns = []

urlpatterns += router.urls
